package com.example.day03.utils

import com.example.day03.entity.CodeEntity
import com.example.day03.entity.ReginLoginEntity
import com.example.day03.entity.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {
    @POST(Cons.CODE_URL)
    suspend fun getCode(@Query("phone")phone:String):Res<CodeEntity>
    @POST(Cons.REGIN_URL)
    suspend fun getRegin(@Body body: RequestBody):Res<ReginLoginEntity>
    @POST(Cons.LOGIN_URL)
    suspend fun getLogin(@Body body: RequestBody):Res<ReginLoginEntity>
}